<form name="frmAddSubCat" id="frmAddSubCat">
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
                Tên danh mục con
            </td>
            <td>
                <input type="text" id="sub_cat_name" name="sub_cat_name" style="width: 200px;">
            </td>
            <td>
                Thuộc danh mục
            </td>
            <td>
                <select name="main_cat" style="width: 150px;" id="main_cat">
                    <option value="0">Chọn category</option>
                    <?php foreach ($aryCategory as $key => $value) {?>
                        <option value="<?php echo $value['pmico_category_id']; ?>" <?php echo ($value['pmico_category_id'] == $catIdSelected) ? 'selected' : '';?>><?php echo $value['pmico_category_name']; ?></option>
                    <?php } ?>
                </select>
            </td>
            <td>
                <input type="button" value="Thêm" onclick="AdminController.pmicoSaveSubCategory();">
            </td>
        </tr>
    </table>
</form>
